<?php
class Type extends AppModel{
	public $name='Type';
	 
	public $validate = array(		
		'name' => array(array('rule'=>'notEmpty','message'=>'Can not be empty!'),
				array('rule'=>array('unique','name'),'message'=>'data is already existed')
		),
		);
}
?>
